﻿<?php
	include "conexao.php";
	if ($_SESSION["autenticado"] != "SI") {
    //se não está logado o envio à página de autenticação
    print "<script type = 'text/javascript'> location.href = 'index.php?link=5'</script>";
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cabecalho</title>
<link rel="stylesheet" type="text/css" href="resources/css/estilo.css" />
<style type="text/css">
<!--
.style6 {font-size: 12px}
.style8 {font-size: 12px; font-weight: bold; }
-->
</style>
</head>

<body>
<img src="imagens/areaadmin.jpg" width="191" height="37" />Usuário: <?php
			
			
				echo $_SESSION["txt_login"];
				?> Hoje é:		
				  <?php
		

				
				$dia_da_semana = array ("domingo", "segunda", "terça", "quarta", "quinta", "sexta", "sábado");
			$num_dia = date("w");	
			$dia_extenso = $dia_da_semana[$num_dia];
			echo  $dia_extenso." ,".date("d/m/Y");
			
				
                ?>
                - Hora:
                <?php
				echo date("H:i");
				?>                 
                  
<div id="main">
<div class="top_top"></div>
<div id="header">
	
	<div id="buttons">
      <a href="principal.php?link=1" class="but but_t"  title="">Home</a><div class="but_razd"></div>
      <a href="principal.php?link=6" class="but" title="">Administradores</a><div class="but_razd"></div>
      <a href="principal.php?link=13"  class="but" title="">Configurações</a><div class="but_razd"></div>
      <a href="logout.php"  class="but" title="">Sair</a><div class="but_razd"></div>
      <a href="principal.php?link=#" class="but" title="">Contato</a>
    </div>
	<div id="logo">
    	</div>
   </div>
   </div>
   


</body>
</html>
